<%@ page language="java" contentType="text/html; charset=utf-8"	pageEncoding="utf-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<c:set var="sessionUser" value="${sessionScope.user_profile}"/>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>后台管理</title>
    <link rel="shortcut icon" href="../../resource/images/login/fico.ico">
    <link rel="stylesheet" type="text/css" href="${ctx}/resource/jquery-easyui-1.4.4/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="${ctx}/resource/jquery-easyui-1.4.4/themes/icon.css">
	<style type="text/css">
		body {
			font: 14px/20px "微软雅黑", "宋体", Arial, sans-serif, Verdana, Tahoma;
			padding: 0;
			margin: 0;
		}
		a:link {
		 text-decoration: none;
		}
		a:visited {
		 text-decoration: none;
		}
		a:hover {
		 text-decoration: underline;
		}
		a:active {
		 text-decoration: none;
		}
		.cs-navi-tab {
			padding: 5px;
		}
		.cs-tab-menu {
			width:120px;
		}
		.cs-home-remark {
			padding: 10px;
		}
		.cs-west {
			width:200px;padding:0px;border-left:1px solid #99BBE8;
		}
	</style>
</head>

<body class="easyui-layout" >
	<div data-options="region:'north',border:false" style="height:75px;background:#E0ECFF;padding:10px;">
	  <div style="font-size: 25px;font-weight: bold;padding-top: 15px;font-family:cursive">彩虹租房管理系统</div>
	  <div style="float: right;">
	  	欢迎您，<c:out value="${sessionScope.user_profile.realName}"/>
		<%-- <input id="sessionUser" value="${sessionUser.isUpdatePwd}" type="hidden"/>--%>	  	
		<!--  <span style="padding: 0 10px;">|</span>
	  	<a href="javascript:void(0);" onclick="updatePasswd()">修改密码</a>-->
	  	<span style="padding: 0 10px;">|</span>
	  	<a href="javascript:void(0);" onclick="logout()">安全退出</a>
	  </div>
	</div>
	<div data-options="region:'west',split:true,title:'导航菜单'" class="cs-west">
		<div class="easyui-accordion" style="width:100%;">
			
			
		</div>
	</div>
	<div data-options="region:'center'">
		<div id="tabs" class="easyui-tabs" data-options="tools:'#tab-tools'" style="width:100%;height: 100%;">
			<div title="公寓品牌列表">
				<c:if test="${sessionScope.authMap['1']=='1'}">
				<div title="公寓品牌列表" style="width: 100%;height:100%;">
					<c:if test="${sessionScope.authMap['1_1']=='1_1'}">
						<iframe scrolling="auto" frameborder="0"  src="${ctx}/landlord/toLandlordList.shtml" style="width:99%;height:99%;"></iframe>
					</c:if>
				</div>
			</c:if>
			</div>
		</div>
	</div>
	<div id="mm" class="easyui-menu cs-tab-menu">
		<div id="mm-tabupdate">刷新</div>
		<div class="menu-sep"></div>
		<div id="mm-tabclose">关闭</div>
		<div id="mm-tabcloseother">关闭其他</div>
		<div id="mm-tabcloseall">关闭全部</div>
	</div>
	<div id="passwdDiv" class="easyui-window" title="修改密码" data-options="modal:true,closed:true,collapsible:false" style="width:450px;height:350px;padding:5px;"></div>
	<script type="text/javascript" src="${ctx}/resource/js/jquery.min.js"></script>
	<script type="text/javascript" src="${ctx}/resource/jquery-easyui-1.4.4/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="${ctx}/resource/jquery-easyui-1.4.4/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="${ctx}/resource/js/index.js"></script>
	<script type="text/javascript" src="${ctx}/resource/js/event_extend.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			/*if($("#sessionUser").val()==0){
				updatePasswd();
			}*/
			tabCloseEven();
			$('.cs-navi-tab').click(function() {
				var $this = $(this);
				var href = $this.attr('src');
				var title = $this.text();
				var id = $this.attr('id');
				addTab(title, href,id);
			});
		});
		function logout(){
			$.messager.confirm('确认提示', '确定要退出吗?', function(r){
				if (r){
					window.location.href="${ctx}/system/user/logout.shtml";
				}
			});
		}
		
		/**切换iframe地址,供子页面调用,一般不允许使用，主要为编辑页面临时使用*/
		function setTopFrame(frameId, src, id){
			if (id+'_curIframe' == frameId){
				$('#'+id+'_editIframe').hide();
				$('#'+id+'_editIframe').empty();
				try{
					$('#'+id+'_editIframe').attr('src', '');
				}catch(e){}
				$('#'+id+'_curIframe').show();
			}else {
				$('#'+id+'_curIframe').hide();
				$('#'+id+'_editIframe').show();
				$('#'+id+'_editIframe').attr('src', src);
			}
		}
	</script>
</body>
</html>